import java.io.File;


public class extractFilter extends javax.swing.filechooser.FileFilter {
	///this filter accept zip rfs and tar files.
	public boolean accept(File f) {
		return (f.isDirectory() || f.getName().toLowerCase().endsWith("zip") || f.getName().toLowerCase().endsWith("tar")|| f.getName().toLowerCase().endsWith("rfs")|| f.getName().toLowerCase().endsWith("rar"));
	}   
	public String getDescription() {
		return "*.rar *.tar *.rfs *.zip files";
	}
}
